package com.example.myanimation.MyEvalutor;

import android.animation.TypeEvaluator;

/**
 * Created by zy on 2017/4/26.
 */

public class myEvalutor implements TypeEvaluator<Integer>{
    @Override
    public Integer evaluate(float fraction, Integer startValue, Integer endValue) {
        return (int)(endValue-(endValue-startValue)*fraction);
    }
}
